﻿#region License

//     This file is part of TCP Sender.
// 
//     TCP Sender is free software: you can redistribute it and/or modify
//     it under the terms of the GNU General Public License as published by
//     the Free Software Foundation, either version 3 of the License, or
//     (at your option) any later version.
// 
//     TCP Sender is distributed in the hope that it will be useful,
//     but WITHOUT ANY WARRANTY; without even the implied warranty of
//     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//     GNU General Public License for more details.
// 
//     You should have received a copy of the GNU General Public License
//     along with TCP Sender.  If not, see <http://www.gnu.org/licenses/>

#endregion

/*
 * Created by Error218
 * 25/07/2012
 * 22:00
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace Packet_Sender
{
    static class Program
    {
        /// <summary>
        /// Entry point off the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            // Visual Studio default EP /*
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            // Visual Studio default EP */

            Application.Run(new Form1());           // I draw the form for device selection
            if (Globals.currentDevice != null)      // If a device is selected I'll show sender form,
                    Application.Run(new Form2());   // Else I'll exit.

            //Exit the application
        }
    }
}
